from enum import Enum


class ClientTypeEnum(Enum):
    USER_EMAIL = 100
    USER_MOBILE = 101
    Admin_Create = 102
    WRITER_REGISTER = 103
    WRITER_PHONE = 104

    # 微信小程序
    USER_MINA = 200
    USER_WXACCOUNT = 202
    # 微信公众号950
    USER_WX = 201

    USER_WXID = 203

    CUSTOM_LOGIN = 300

    USER_SCAN = 301


Scope_dict = {
    5: 'WxMpScope'
}

TASK_STATUS = {
    -1: '被拒稿',
    0: '待提交',
    1: '已提交',
    2: '预结算',
    3: '已结算',
    4: '已评价'
}

TB_ORDER_STATUS = {
    0: '待完成',
    1: '预结算',
    2: '已结算'
}

TASK_KEFU_STATUS = {
    0: '待完成',
    1: '预结算',
    2: '已结算'
}

TASK_QUALITY = {
    0: '未评价',
    1: '非常差',
    2: '差',
    3: '一般',
    4: '好',
    5: '非常好'
}

WRITER_REFUND = {
    0: '否',
    1: '是'
}

ERROR_CODE = {
    -1: '订单数量不足！请补足订单数量。',
    -2: '淘宝接口请求失败，错误信息：',
    -3: '',
    -4: '该订单号已提交，请去下载页面下载报告!',
    1: '无效AccessToken，请联系客服',
    2: 'Api调用限制，请联系客服',
    3: '业务异常，请联系客服',
    4: '验签失败，请联系客服',
    5: '参数错误，请联系客服',
    6: '部分失败，请联系客服',
    7: '全部失败，请联系客服',
    8: '授权失败，订单号无效，请确认订单号是否正确',
    9: '对不起！交易不存在，请检查订单号是否输入正确',
    10: '店铺校验不正确，可能是网址输入错误',
    16: '预存款余额不足了，限制接口调用',
    114: '没有数据，请联系客服'
}


class SMSType(Enum):
    ResetPassword = 'SMS_169680197'
    Register = 'SMS_169380156'
    Login = 'SMS_169380156'
    Pay = '打款'
    Verifiy = 'SMS_169370187'
    takenotifaction = 'SMS_186515504'
    submitnotifaction = 'SMS_186954000'
